package com.huyaanalysisplatform.controller;


import com.huyaanalysisplatform.entity.TMatchTime;
import com.huyaanalysisplatform.service.TMatchTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.huyaanalysisplatform.controller.BaseController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Huadi Group 12
 * @since 2021-08-01
 */
@RestController
@RequestMapping("/matchtime")
@CrossOrigin
public class TMatchTimeController extends BaseController {
    @Autowired
    TMatchTimeService tMatchTimeService;

    @PostMapping("/rate")
    public Map<String, List<TMatchTime>> rate(){
        return tMatchTimeService.rate();
    }
}
